﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _5._22
{
    class TaskNpc:NPC
    {
        public string taskinfo;
        public string Taskinfo { get => taskinfo; set => taskinfo = value; }

        public TaskNpc(string name, string typeNpc, string taskinfo) : base(name, typeNpc)
        {
            this.taskinfo = taskinfo;
        }
        public override void Speak()
        {
            Console.WriteLine("亲爱的{0}，你可以帮我{1}", this.name, this.taskinfo);
        }
    }
}
